<%@ page contentType="text/html;charset=utf-8" %>
<html>

<head>
<title>欢迎来到登录页面</title>

<%-- <script type="text/javascript" charset="gb2312" src="verify.js">

</script> --%>
<script type="text/javascript">
function checkForm()
{
	if(document.loginInfo.userName.value.length==0)
		{
		alert("请输入用户名！");
	  	document.form1.userName.focus();
	  	return false;
		
		}
	 if(document.loginInfo.pwd.value.length==0)
	  {
	  	alert("请输入密码!");
	  	document.form1.pwd.focus();
	  	return false;
	  }
	 if(document.loginInfo.ver.value.length==0)
		 {
		 	alert("请输入验证码：");
		 	document.loginInfo.ver.focus();
		 	return false;
		 
		 }
	 return true;
	}
</script>
</head>

<body>
<form action="check.jsp" method="post" name="loginInfo" onsubmit="return checkForm()">
<table align="center">
<tr>
<td>用户名:
</td>
<td>
<input type="text" name="userName" id="uname"/>
</td>
</tr>
<tr><td>
密码:
</td>
<td><input type="password" name="pwd" id="upwd"  />
</td>
</tr>
<tr>
<td>验证码：
</td>
</td>
<td><input type="text" name="ver" id="ver"  />
<td><img alt="点击换一张" title="点击换一张" src="img.jsp" name="verify" onclick="this.src='img.jsp'"> <input type="button" value="看不清，换一张" onclick="document.loginInfo.verify.src='img.jsp'" >
</td>
</tr>
<tr >
<td colspan=2>
<input type="submit" value="登录" >

<input type="reset"  value="重置"/>
</td>
</tr>
<tr>
<td colspan=2 >


<input type="button" value="没有账号，注册一个" onclick="javascript:window.location.href='register.jsp'">
</td>
</tr>

</table>
</form>


</body>

</html>

